package com.joy.eureka.ribbon.action;

import com.joy.eureka.ribbon.servoce.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RibbonAction {
    @Autowired
    private RibbonService ribbonService;

    @RequestMapping("hi")
    public String hi(@RequestParam(required = false, defaultValue = "forezp") String name) {
        return ribbonService.hi(name);
    }
}
